package com.innoking.docsys.user.service.impl;

import com.innoking.docsys.user.dao.cluster.ClusterUpmsFondsDao;
import com.innoking.docsys.user.dto.UpmsFondsManage;
import com.innoking.docsys.user.service.UpmsFondsService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* UpmsOrganizationService实现
* Created by shuzheng on 2017/3/20.
 *
*/
@Service
public class UpmsFondsServiceImpl implements UpmsFondsService {

    private static final Logger logger = LoggerFactory.getLogger(UpmsFondsServiceImpl.class);

    @Autowired
    private ClusterUpmsFondsDao clusterUpmsFondsDao;

    @Override
    public List<UpmsFondsManage> findfondsList() {
        List<UpmsFondsManage> upmsFonds = clusterUpmsFondsDao.findfondsList();
        return upmsFonds;
    }

    @Override
    public List<UpmsFondsManage> findOrgListByOrgCode(String orgCode) {
        List<UpmsFondsManage> upmsFonds = clusterUpmsFondsDao.findfondsListByOrgCode(Integer.valueOf(orgCode));
        return upmsFonds;
    }

    @Override
    public List<UpmsFondsManage> findfondsListByfondsId(String fondsId) {
        List<UpmsFondsManage> upmsFonds = clusterUpmsFondsDao.findfondsListByfondsId(Integer.valueOf(fondsId));
        return upmsFonds;
    }
}